package com.demo.lcgl.exception;

import org.springframework.web.bind.annotation.RestControllerAdvice;

import lombok.extern.slf4j.Slf4j;

/**
 * LcglException 系统内部异常
 */
@Slf4j
@RestControllerAdvice
public class LcglException extends RuntimeException {

    private static final long serialVersionUID = -994962710559017255L;

    public LcglException() {}

    public LcglException(String message) {
        super(message);
        log.error(message);
    }
}
